package org.uc3m.pfc.lifecycle;

/**
 * 
 * @author esteban
 *
 */
public abstract class LifeCycle implements ILifeCycle {

	// Class fields *******************************************************
	
	/** State field. */
	private State state;
	/** Substate field. */
	private State substate;
	
	
	// ILifeCycle methods *************************************************
	
	@Override
	public void setState(final State pstate) {

		this.state = pstate;
	}

	@Override
	public State getState() {
		return this.state;
	}

	@Override
	public void setSubstate(final State psubstate) {

		this.substate = psubstate;
	}
	
	@Override
	public State getSubstate() {

		return this.substate;
	}
}
